<template>
  <div class="searchBar" :style="backgroundColors[config.index]">
    <img :src="searchIcon" alt="">
    <div class="searchBar_text">{{info}}</div>
  </div>
</template>

<script>
export default {
  name: "search",
  props: {
    info: {
      type: String,
      require: true
    },
    config:Object
  },
  data(){
    return{
      searchIcon:require('@/assets/icon/index/search.png'),
      backgroundColors:[
        {backgroundColor:'#E5E5E5'},
        {backgroundColor:'#fff'}
      ],
      selectedIndex:0,
    }
  }
}
</script>

<style scoped lang="scss">
.searchBar{
  height: 34px;
  display: flex;
  width: 75%;
  border-radius: 5px;
  display: flex;
  justify-content: left;
  align-items: center;
  margin-left: 10px;
  text-align: center;
  background-color: white;
  z-index: 1;
  img{
    height: 18px;
    width: 18px;
    margin-left: 4px;
    margin-right: 6px;
  }

  .searchBar_text{
      font-size: 15px;
      font-family: "Adobe Heiti Std";
      color: rgb(86, 86, 86);
      -moz-transform: matrix( 1.00037738512347,0,0,1,0,0);
      -webkit-transform: matrix( 1.00037738512347,0,0,1,0,0);
      -ms-transform: matrix( 1.00037738512347,0,0,1,0,0);
      z-index: 17;
  }
}
</style>
